<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets">
  <body>
    <ui:composition template="/WEB-INF/templates/segretario.xhtml">
      <ui:define name="titoloSottoSezione">
        Registra Docente
      </ui:define>
      
      <ui:define name="contenuto">
        <h3>Registra un Docente</h3>
        
        <h:form>
        <table class="plainText">
          <tr>
            <td>Nome utente:</td>
            <td><h:inputText id="nomeUtente" value="#{mainBean.segretario.docentiBean.nomeUtenteDaRegistrare}" required="true"/></td>
            <td><h:message for="nomeUtente"/></td>
          </tr>
          <tr>
            <td colspan="2"><h:commandButton value="Registra" action="#{mainBean.segretario.docentiBean.registraDocente}" style="width: 100%"/></td>
          </tr>
        </table>
        </h:form>
      </ui:define>
    </ui:composition>
  </body>
</html>